<!DOCTYPE html>
<html lang="en">
<head>
  <title>vue-fair-web</title>
</head>
<body>
</body>

<script>
  function getParameterSet() {
    var url = window.location.href;
    var stars = url.split('?');
    var parameters = {};
    stars.forEach(function(str, index) {
      if (index > 0) {
        var param = str.split('=');
        parameters[param[0]] = decodeURIComponent(param[1]);
      }
    });
    return parameters;
  }
  var paramters = getParameterSet();
  var to = paramters.to;
  if (to) {
    location.href = to + '?pdtid=' + paramters.id;
  }
  var from = paramters.from;
  if (from) {
    location.href = from;
  }
</script>
</html>
